<!DOCTYPE html>
<html>
<head>
    <title>线索表</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






    <style>
        .layui-table-cell {
            padding:0 5px;
            height:inherit;
            overflow:visible;
            text-overflow:inherit;
            white-space:normal;
            word-break: break-all;
        }
    </style>
</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
    <div class="list-header-content-box">
        <div class="list-header-card display">
            <div
                    v-for="(item, index) in statusLst"
                    :key="index"
                    :sname="item.key"
                    class="flex" :class="item.key == statusIndex ? 'active' : ''" @click="changeStatus(item,index)" style="cursor:pointer;">
                <div class="list-header-card-text">{{item.name}}</div>
                <div class="list-header-card-number">{{item.count}}</div>
            </div>
        </div>
    </div>

    <div id="searchId">
        <div class="list-search-title-box">
            <form class="layui-form">
                <div style="display:flex;width: 100%;">
                    <div class="layui-form-item layui-row" style="width: 100%;">
                        <div class="list-search-form-button" style="width: 100%;">
                            <a class="layui-btn reset-btn" id="exports" v-m-perm="['clues:clues:export']">导出</a>
                            <!--                        </#if>-->
                            <!--                        <#if shiro.hasPermission("clues:clues:inport")>-->
                            <a v-show="statusIndex == 5" class="layui-btn reset-btn" id="imports" v-m-perm="['clues:clues:inport']">导入</a>
                            <a v-show="statusIndex == 5" class="layui-btn reset-btn" @click="importTemplate" v-m-perm="['clues:clues:inport']">导入模板</a>
                            <!--                        </#if>-->
                            <!--                        <#if shiro.hasPermission("clues:clues:save")>-->
                            <a v-show="statusIndex == 5" class="layui-btn reset-btn" @click="add" v-m-perm="['clues:clues:save']">新增</a>
                            <!--                        </#if>-->
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="list-table-content-box">
    <table class="layui-hide" id="grid" lay-filter="grid"></table>
</div>
<form id="downLoadXls" style="display: none" method="post" target="">
    <input type="text" name="datas"/>
</form>
</div>

<!--操作-->
<script type="text/html" id="rentCarTpl">
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="dealRentBz" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">处理备注</a>
<!--    </#if>-->
<!--    <#if shiro.hasPermission("clues:clues:info")>-->
    <a class="layui-grid-btn-xs" lay-event="rentview" v-m-perm="['clues:clues:info']" more-btn-index="{{d.LAY_INDEX-1}}">详情</a>
<!--    </#if>-->
    {{#if(d.isCall === 0){}}
<!--        <#if shiro.hasPermission("clues:clues:update")>-->
        <a class="layui-grid-btn-xs" lay-event="rentCall" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">确认已打电话</a>
<!--        </#if>-->
    {{#}}}

</script>

<script type="text/html" id="hybmTpl">
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="dealHybmBz" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">处理备注</a>
<!--    </#if>-->
<!--    <#if shiro.hasPermission("clues:clues:info")>-->
    <a class="layui-grid-btn-xs" lay-event="viewHybm" v-m-perm="['clues:clues:info']" more-btn-index="{{d.LAY_INDEX-1}}">详情</a>
<!--    </#if>-->
    {{#if(d.isCall === 0){}}
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="hybmCall" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">确认已打电话</a>
<!--    </#if>-->
    {{#}}}
</script>

<script type="text/html" id="yysjTpl">
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="dealYysjBz" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">处理备注</a>
<!--    </#if>-->
<!--    <#if shiro.hasPermission("clues:clues:info")>-->
    <a class="layui-grid-btn-xs" lay-event="viewYysj" v-m-perm="['clues:clues:info']" more-btn-index="{{d.LAY_INDEX-1}}">详情</a>
<!--    </#if>-->
    {{#if(d.isCall === 0){}}
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="yysjCall" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">确认已打电话</a>
<!--    </#if>-->
    {{#}}}
    {{#if(d.arrivalStatus === 1){}}
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="yysjArrival" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">确认已到店</a>
<!--    </#if>-->
    {{#}}}
</script>

<script type="text/html" id="hdzxTpl">
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="dealHdzxBz" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">处理备注</a>
<!--    </#if>-->
<!--    <#if shiro.hasPermission("clues:clues:info")>-->
    <a class="layui-grid-btn-xs" lay-event="viewHdzx" v-m-perm="['clues:clues:info']" more-btn-index="{{d.LAY_INDEX-1}}">详情</a>
<!--    </#if>-->
    {{#if(d.isCall === 0){}}
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="hdzxCall" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">确认已打电话</a>
<!--    </#if>-->
    {{#}}}
</script>

<script type="text/html" id="hzjmTpl">
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="dealHzjmBz" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">处理备注</a>
<!--    </#if>-->
<!--    <#if shiro.hasPermission("clues:clues:info")>-->
    <a class="layui-grid-btn-xs" lay-event="viewHzjm" v-m-perm="['clues:clues:info']" more-btn-index="{{d.LAY_INDEX-1}}">详情</a>
<!--    </#if>-->
    {{#if(d.isCall === 0){}}
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="hzjmCall" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">确认已打电话</a>
<!--    </#if>-->
    {{#}}}
</script>

<script type="text/html" id="cluesTpl">
    <!--<#if shiro.hasPermission("clues:clues:update")>
    <a class="layui-grid-btn-xs" lay-event="transfer">跟进</a>
    </#if>
    <#if shiro.hasPermission("clues:clues:update")>
    <a class="layui-grid-btn-xs" lay-event="transfer">转移</a>
    </#if>
    <#if shiro.hasPermission("clues:clues:info")>
    <a class="layui-grid-btn-xs" lay-event="view">详情</a>
    </#if>
    <#if shiro.hasPermission("clues:clues:update")>
    <a class="layui-grid-btn-xs" lay-event="transfer">编辑</a>
    </#if>-->
<!--    <#if shiro.hasPermission("clues:clues:update")>-->
    <a class="layui-grid-btn-xs" lay-event="follow_clues" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">跟进</a>
    <a class="layui-grid-btn-xs" lay-event="transfer_clues" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">转移</a>
    <a class="layui-grid-btn-xs" lay-event="edit_clues" v-m-perm="['clues:clues:update']" more-btn-index="{{d.LAY_INDEX-1}}">编辑</a>
<!--    </#if>-->
<!--    <#if shiro.hasPermission("clues:clues:info")>-->
    <a class="layui-grid-btn-xs" lay-event="view_clues" v-m-perm="['clues:clues:info']" more-btn-index="{{d.LAY_INDEX-1}}">查看</a>

    <a class="layui-grid-btn-xs" lay-event="delete" v-m-perm="['clues:clues:delete']" more-btn-index="{{d.LAY_INDEX-1}}">删除</a>

    <!--    </#if>-->
</script>

<script src="../../statics/js/modules/clues/clueslist.js?_${.now?long}"></script>
</body>
</html>
